def main1():
    num=input("Enter a number: ")
    if num == num[::-1]:
        print('1')
main1()